<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
</head>
<body>
<div id="main" style='width: 600px;height:400px;border:3px solid red'></div>
<script type="text/javascript">
var myChart = echarts.init(document.getElementById('main'));
var option = {
    title: {text: 'first_chart'},
    legend: {data:['用户分层'] },
    xAxis: {data: ['流失用户', '回流用户', '连续活跃用户', '新用户', '活跃用户']},
    yAxis: {},
    series: [{name: '用户数', type: 'bar', data: [183472, 6546, 524, 91, 0]}],
};

myChart.setOption(option);
</script>
</body>
</html>